import React, {Component, PropTypes} from "react";
import {Link} from "react-router";
import OrderGoodsList from "./OrderGoodsList";
import cookie from 'react-cookie';


class OrderGoodsDetail extends Component {
    constructor(props) {
        super(props);
        this.state = {

        }
    }
    render() {
        const {item} = this.props;
        const imgUrl = item.image ? item.image.split(",")[0]:item.image
        return (
            <div>
                <li>
                    <div className="orderDetail-goods">
                        <span><img src={imgUrl}/></span>
                        <dl className="trade-order-list">
                            <dt className="trade-dt-one">{item.name}</dt>
                            <dt className="trade-dt-two">{item.secondName}</dt>
                            <dt className="trade-dt-three">￥{item.price}</dt>
                        </dl>
                        <p>x{item.buyNumber}</p>
                    </div>
                </li>
            </div>
        )
    }

}
export default OrderGoodsDetail